package com.lgy.dao;

import com.lgy.pojo.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerDao {
    int deleteByPrimaryKey(@Param("customerId")Integer customerId);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(@Param("customerId")Integer customerId);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);


    List<Customer> findAllById(@Param("companyId") Integer companyId);

    Customer findByPhone(@Param("customerPhone") String customerPhone,@Param("companyId") Integer companyId);

    List<Customer> findByCompanyId(@Param("companyId")Integer companyId);
}